package com.cocolove2.library_cocodialog.animations.FlipEnter;

import android.animation.ObjectAnimator;
import android.util.DisplayMetrics;
import android.view.View;

import com.cocolove2.library_cocodialog.animations.BaseAnimatorEffects;

public class FlipTopEnter extends BaseAnimatorEffects {
    @Override
    public void setupAnimator(View view) {
        DisplayMetrics dm = view.getContext().getResources().getDisplayMetrics();
        mAnimatorSet.playTogether(//
                ObjectAnimator.ofFloat(view, "rotationX", 90, 0),//
                ObjectAnimator.ofFloat(view, "translationY", -200 * dm.density, 0), //
                ObjectAnimator.ofFloat(view, "alpha", 0.2f, 1));
    }
}
